package com.czl.module_base.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author by xubin,
 * @date on 2022/2/11.
 * PS: Not easy to write code, please indicate.
 */
public class CompanyBean implements Parcelable {

    /**
     * companyScale : 50~100人
     * legalPhone : 18986251006
     * companyDistrict : 420111
     * industryCategory : L租赁和商务服务业
     * companyName : 武汉银海物业管理有限公司升升公寓分公司
     * companyBusiness : 公寓管理、物业管理
     * companyShortName : 银海物业
     * isEnable : 1
     * parentCompanyId : 0
     * companyEmail :
     * companyPhone :
     * legalPerson : 牛总
     * companyNature : 股份合作制企业
     * companyFax :
     * companyProvince : 420000
     * legalUserId : 1113
     * companyCity : 420100
     * companyTag : 0
     * contactUserId : 1111
     * contactName : 肖传峰
     * gmtCreate : 1537514225000
     * legalIdnumber :
     * companyId : 230
     * organizationCode : WY-SSGY-2018092101
     * companyAddress : 北港工业园书城路文秀街7号
     * contactIdnumber :
     * contactPhone : 18963951881
     * companyPostcode :
     */
    private String companyId;
    private String companyScale;
    private String legalPhone;
    private String companyDistrict;
    private String companyDistrictName;
    private String industryCategory;
    private String companyName;
    private String companyBusiness;
    private String companyShortName;
    private int isEnable;
    private int parentCompanyId;
    private String companyEmail;
    private String companyPhone;
    private String legalPerson;
    private String companyNature;
    private String companyFax;
    private String companyProvince;
    private String companyProvinceName;
    private int legalUserId;
    private String companyCity;
    private String companyCityName;
    private int companyTag;
    private int contactUserId;
    private String contactName;
    private String legalIdnumber;
    private String organizationCode;
    private String companyAddress;
    private String contactIdnumber;
    private String contactPhone;
    private String companyPostcode;
    private int opUserId;
    private int managerCompanyId;
    private String projectId;
    private String userId;
    private boolean selected;
    private String projectIds;
    private boolean isEditable;

    public CompanyBean() {

    }

    protected CompanyBean(Parcel in) {
        companyId = in.readString();
        companyScale = in.readString();
        legalPhone = in.readString();
        companyDistrict = in.readString();
        companyDistrictName = in.readString();
        industryCategory = in.readString();
        companyName = in.readString();
        companyBusiness = in.readString();
        companyShortName = in.readString();
        isEnable = in.readInt();
        parentCompanyId = in.readInt();
        companyEmail = in.readString();
        companyPhone = in.readString();
        legalPerson = in.readString();
        companyNature = in.readString();
        companyFax = in.readString();
        companyProvince = in.readString();
        companyProvinceName = in.readString();
        legalUserId = in.readInt();
        companyCity = in.readString();
        companyCityName = in.readString();
        companyTag = in.readInt();
        contactUserId = in.readInt();
        contactName = in.readString();
        legalIdnumber = in.readString();
        organizationCode = in.readString();
        companyAddress = in.readString();
        contactIdnumber = in.readString();
        contactPhone = in.readString();
        companyPostcode = in.readString();
        opUserId = in.readInt();
        managerCompanyId = in.readInt();
        projectId = in.readString();
        userId = in.readString();
        selected = in.readByte() != 0;
        projectIds = in.readString();
        isEditable = in.readByte() != 0;
    }

    public static final Creator<CompanyBean> CREATOR = new Creator<CompanyBean>() {
        @Override
        public CompanyBean createFromParcel(Parcel in) {
            return new CompanyBean(in);
        }

        @Override
        public CompanyBean[] newArray(int size) {
            return new CompanyBean[size];
        }
    };

    public int getManagerCompanyId() {
        return managerCompanyId;
    }

    public void setManagerCompanyId(int managerCompanyId) {
        this.managerCompanyId = managerCompanyId;
    }

    public String getCompanyDistrictName() {
        return companyDistrictName;
    }

    public void setCompanyDistrictName(String companyDistrictName) {
        this.companyDistrictName = companyDistrictName;
    }

    public String getCompanyProvinceName() {
        return companyProvinceName;
    }

    public void setCompanyProvinceName(String companyProvinceName) {
        this.companyProvinceName = companyProvinceName;
    }

    public String getCompanyCityName() {
        return companyCityName;
    }

    public void setCompanyCityName(String companyCityName) {
        this.companyCityName = companyCityName;
    }

    public boolean isEditable() {
        return isEditable;
    }

    public void setEditable(boolean editable) {
        isEditable = editable;
    }

    public String getProjectIds() {
        return projectIds;
    }

    public void setProjectIds(String projectIds) {
        this.projectIds = projectIds;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public int getOpUserId() {
        return opUserId;
    }

    public void setOpUserId(int opUserId) {
        this.opUserId = opUserId;
    }

    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    public boolean isSelected() {
        return selected;
    }

    public void setSelected(boolean selected) {
        this.selected = selected;
    }

    public String getCompanyScale() {
        return companyScale;
    }

    public void setCompanyScale(String companyScale) {
        this.companyScale = companyScale;
    }

    public String getLegalPhone() {
        return legalPhone;
    }

    public void setLegalPhone(String legalPhone) {
        this.legalPhone = legalPhone;
    }

    public String getCompanyDistrict() {
        return companyDistrict;
    }

    public void setCompanyDistrict(String companyDistrict) {
        this.companyDistrict = companyDistrict;
    }

    public String getIndustryCategory() {
        return industryCategory;
    }

    public void setIndustryCategory(String industryCategory) {
        this.industryCategory = industryCategory;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getCompanyBusiness() {
        return companyBusiness;
    }

    public void setCompanyBusiness(String companyBusiness) {
        this.companyBusiness = companyBusiness;
    }

    public String getCompanyShortName() {
        return companyShortName;
    }

    public void setCompanyShortName(String companyShortName) {
        this.companyShortName = companyShortName;
    }

    public int getIsEnable() {
        return isEnable;
    }

    public void setIsEnable(int isEnable) {
        this.isEnable = isEnable;
    }

    public int getParentCompanyId() {
        return parentCompanyId;
    }

    public void setParentCompanyId(int parentCompanyId) {
        this.parentCompanyId = parentCompanyId;
    }

    public String getCompanyEmail() {
        return companyEmail;
    }

    public void setCompanyEmail(String companyEmail) {
        this.companyEmail = companyEmail;
    }

    public String getCompanyPhone() {
        return companyPhone;
    }

    public void setCompanyPhone(String companyPhone) {
        this.companyPhone = companyPhone;
    }

    public String getLegalPerson() {
        return legalPerson;
    }

    public void setLegalPerson(String legalPerson) {
        this.legalPerson = legalPerson;
    }

    public String getCompanyNature() {
        return companyNature;
    }

    public void setCompanyNature(String companyNature) {
        this.companyNature = companyNature;
    }

    public String getCompanyFax() {
        return companyFax;
    }

    public void setCompanyFax(String companyFax) {
        this.companyFax = companyFax;
    }

    public String getCompanyProvince() {
        return companyProvince;
    }

    public void setCompanyProvince(String companyProvince) {
        this.companyProvince = companyProvince;
    }

    public int getLegalUserId() {
        return legalUserId;
    }

    public void setLegalUserId(int legalUserId) {
        this.legalUserId = legalUserId;
    }

    public String getCompanyCity() {
        return companyCity;
    }

    public void setCompanyCity(String companyCity) {
        this.companyCity = companyCity;
    }

    public int getCompanyTag() {
        return companyTag;
    }

    public void setCompanyTag(int companyTag) {
        this.companyTag = companyTag;
    }

    public int getContactUserId() {
        return contactUserId;
    }

    public void setContactUserId(int contactUserId) {
        this.contactUserId = contactUserId;
    }

    public String getContactName() {
        return contactName;
    }

    public void setContactName(String contactName) {
        this.contactName = contactName;
    }

    public String getLegalIdnumber() {
        return legalIdnumber;
    }

    public void setLegalIdnumber(String legalIdnumber) {
        this.legalIdnumber = legalIdnumber;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public String getOrganizationCode() {
        return organizationCode;
    }

    public void setOrganizationCode(String organizationCode) {
        this.organizationCode = organizationCode;
    }

    public String getCompanyAddress() {
        return companyAddress;
    }

    public void setCompanyAddress(String companyAddress) {
        this.companyAddress = companyAddress;
    }

    public String getContactIdnumber() {
        return contactIdnumber;
    }

    public void setContactIdnumber(String contactIdnumber) {
        this.contactIdnumber = contactIdnumber;
    }

    public String getContactPhone() {
        return contactPhone;
    }

    public void setContactPhone(String contactPhone) {
        this.contactPhone = contactPhone;
    }

    public String getCompanyPostcode() {
        return companyPostcode;
    }

    public void setCompanyPostcode(String companyPostcode) {
        this.companyPostcode = companyPostcode;
    }

    public boolean getSelected() {
        return this.selected;
    }

    public boolean getIsEditable() {
        return this.isEditable;
    }

    public void setIsEditable(boolean isEditable) {
        this.isEditable = isEditable;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(companyId);
        dest.writeString(companyScale);
        dest.writeString(legalPhone);
        dest.writeString(companyDistrict);
        dest.writeString(companyDistrictName);
        dest.writeString(industryCategory);
        dest.writeString(companyName);
        dest.writeString(companyBusiness);
        dest.writeString(companyShortName);
        dest.writeInt(isEnable);
        dest.writeInt(parentCompanyId);
        dest.writeString(companyEmail);
        dest.writeString(companyPhone);
        dest.writeString(legalPerson);
        dest.writeString(companyNature);
        dest.writeString(companyFax);
        dest.writeString(companyProvince);
        dest.writeString(companyProvinceName);
        dest.writeInt(legalUserId);
        dest.writeString(companyCity);
        dest.writeString(companyCityName);
        dest.writeInt(companyTag);
        dest.writeInt(contactUserId);
        dest.writeString(contactName);
        dest.writeString(legalIdnumber);
        dest.writeString(organizationCode);
        dest.writeString(companyAddress);
        dest.writeString(contactIdnumber);
        dest.writeString(contactPhone);
        dest.writeString(companyPostcode);
        dest.writeInt(opUserId);
        dest.writeInt(managerCompanyId);
        dest.writeString(projectId);
        dest.writeString(userId);
        dest.writeByte((byte) (selected ? 1 : 0));
        dest.writeString(projectIds);
        dest.writeByte((byte) (isEditable ? 1 : 0));
    }
}
